package demo3;

public class Test {
    public static void drawMap(IShape iShape) {
        iShape.draw();
    }

    public static void main(String[] args) {
        drawMap(new Rect());
        drawMap(new Cycle());

        IShape[] iShapes = {new Rect(),new Cycle()};
        IShape iShape = new Cycle();
    }
}
